package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购入库记录对象 purchase_storage
 * 
 * @author ruoyi
 * @date 2025-06-17
 */
public class PurchaseStorage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 入库ID */
    private Long storageId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;

    /** 入库数量 */
    @Excel(name = "入库数量")
    private Long storageQuantity;

    /** 入库日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date storageDate;

    /** 入库人 */
    @Excel(name = "入库人")
    private String storageBy;

    /** 入库时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date storageTime;

    public void setStorageId(Long storageId) 
    {
        this.storageId = storageId;
    }

    public Long getStorageId() 
    {
        return storageId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }

    public void setStorageQuantity(Long storageQuantity) 
    {
        this.storageQuantity = storageQuantity;
    }

    public Long getStorageQuantity() 
    {
        return storageQuantity;
    }

    public void setStorageDate(Date storageDate) 
    {
        this.storageDate = storageDate;
    }

    public Date getStorageDate() 
    {
        return storageDate;
    }

    public void setStorageBy(String storageBy) 
    {
        this.storageBy = storageBy;
    }

    public String getStorageBy() 
    {
        return storageBy;
    }

    public void setStorageTime(Date storageTime) 
    {
        this.storageTime = storageTime;
    }

    public Date getStorageTime() 
    {
        return storageTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("storageId", getStorageId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("storageQuantity", getStorageQuantity())
            .append("storageDate", getStorageDate())
            .append("storageBy", getStorageBy())
            .append("storageTime", getStorageTime())
            .append("remark", getRemark())
            .toString();
    }
}
